import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import { store } from './store';
import './styles/base.css';
import './styles/index.css';
// 根组件
import App from './App';
// import { App2 } from './02-Router-Switch';
// import App from './03-Hash-路由模拟实现';

// 创建一个root
const root = ReactDOM.createRoot(document.querySelector('#root'));

root.render(
  <Provider store={store}>
    <App />
  </Provider>
);
